#pragma once
#include "afxcmn.h"


// CDlgEditPriority dialog

class CDlgEditPriority : public CDialog
{
	DECLARE_DYNAMIC(CDlgEditPriority)

public:
	CDlgEditPriority(CWnd* pParent = NULL);   // standard constructor
	virtual ~CDlgEditPriority();

	virtual BOOL OnInitDialog();
	virtual void OnOK();
	virtual void OnCancel();

	afx_msg void OnBnClickedButtonApply();
	afx_msg void OnBnClickedButtonDelete();
	afx_msg void OnBnClickedButtonBrowse();
	afx_msg void OnDeltaposSpinRecord(NMHDR *pNMHDR, LRESULT *pResult);

// Dialog Data
	enum { IDD = IDD_DIALOG_EDIT_PRIORITY };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()

public:
	LONG m_nID;
	BOOL m_bAddPriority;
	CString m_szID;
	double m_dServiceFee;
	LONG m_nInHours;
	CString m_szDescription;
	BOOL m_bUserListedRequest;
	BOOL m_bUserListedResubmit;
	CString m_szIconFile;
	CString m_szTextColor;
	CString m_szTextColorOld;
	CString m_szBackGroundColor;
	CString m_szBackGroundColorOld;

	BOOL UpdateRecord();
	CArray<LONG> m_naID;
	INT m_nIndexID;
	CSpinButtonCtrl m_ctrlRecord;
	CString m_szPrintNotice;
};
